import Mocks from "mockjs";
const baseUrl = '/api'
import {getData,iresponse} from '../index'

const token=Mocks.mock("@word(32,32)")
const userId=Mocks.mock("number|1-99")

const login = Mocks.mock(baseUrl + '/login', (config) => {

   const data=getData(config)
   console.log(data)
   const {username}=data
   return iresponse({
    username,
    token,
    userId
   });
})